package com.ktg.ktgcommon.domain.wms;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class WmTransaction {

  private Long transactionId;
  private String transactionType;
  private Long itemId;
  private String itemCode;
  private String itemName;
  private String specification;
  private String unitOfMeasure;
  private String batchCode;
  private Long warehouseId;
  private String warehouseCode;
  private String warehouseName;
  private Long locationId;
  private String locationCode;
  private String locationName;
  private Long areaId;
  private String areaCode;
  private String areaName;
  private Long pakcageId;
  private String packageCode;
  private Long vendorId;
  private String vendorCode;
  private String vendorName;
  private String vendorNick;
  private String sourceDocType;
  private Long sourceDocId;
  private String sourceDocCode;
  private Long sourceDocLineId;
  private Long materialStockId;
  private Long transactionFlag;
  private Double transactionQuantity;

  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date transactionDate;

  private Long relatedTransactionId;

  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date erpDate;

  private Long workorderId;
  private String workorderCode;

  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date recptDate;

  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date expireDate;

  private String attr1;
  private String attr2;
  private Long attr3;
  private Long attr4;
  private String createBy;

  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date createTime;

  private String updateBy;

  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date updateTime;
}